package com.zmc.coupon.infrastructure.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmc.common.utils.PageUtils;
import com.zmc.coupon.infrastructure.bean.query.CouponQuery;
import com.zmc.coupon.infrastructure.entity.CouponEntity;

import java.util.List;
import java.util.Map;

/**
 * 优惠券信息
 *
 * @author zmc
 * @email 
 * @date 2024-10-09 14:59:36
 */
public interface CouponService extends IService<CouponEntity> {

    PageUtils queryPage(CouponQuery query);

    List<CouponEntity> queryList(CouponQuery query);

    boolean receiveCoupon(Long couponId);

    void updateUseCount(Map<Long, Long> couponMap);

}

